import java.util.Scanner;
//打印X型星星
public class J10122 {
    public static void main(String[] args) {
        Scanner hyf = new Scanner(System.in);
            while(hyf.hasNextInt()) {
                int a = hyf.nextInt();
                for (int i = 0; i < a; i++) {
                    for (int j = 0; j < a; j++) {
                        if(i == j || i + j == (a-1)) {
                            System.out.print("*");
                        } else{
                            System.out.print(" ");
                            }
                    }

                    System.out.println();
                }


            }


        }
    }





//0到100中出现9的次数
    /*public static void main(String[] args) {
        int count = 0;
        for (int i = 0; i <= 100; i++) {

            if(i / 10 == 9 || i % 10 == 9)
                count++;



        }
        System.out.println(count);
    }


}
*/